package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.SalesReturnVO;
import com.spark.invoicings.entity.SalesReturn;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SalesReturnMapper extends BaseMapper<SalesReturn> {

    /**
     * 统计近两年销售退款支出
     * @return
     */
    List<SalesReturnVO>selectSalesReturnCount();

    /**
     * 查询所有退货单
     */
    List<SalesReturn> selectSalesReturnAll(Map<String,Object>map);
}
